package com.njtoyo.taxi.admin.mapper.master.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;

public enum RideCategory {
    realtime(0, "实时单"),
    appointment(1, "预约单"),
    assign(2, "指定单");

    @EnumValue
    private final int code;
    private final String desc;

    RideCategory(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public int getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }
}
